package com.orange.lockscreen.layers;

import android.content.Context;
import android.os.Handler;

import com.orange.lockscreen.common.Constants.Hanlder_Orientation;
import com.orange.lockscreen.common.Constants.LSWidget_Type;
import com.orange.lockscreen.common.Constants.Slat_Type;

public abstract class SlatPanel extends GridLayout implements
		Hanlder_Orientation, Slat_Type, LSWidget_Type {

	protected Handler	mHandler	= null;

	public SlatPanel(Context context) {
		super(context);
	}

	public void init(Handler handler) {
		mHandler = handler;
		LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT);
		setLayoutParams(params);
		init();
	}

	/**
	 * Initialize resources here, subclass shall override this method to init
	 * self. NOTE: It shall be called in onCreate of LockScreenMgr.
	 */
	abstract protected void init();
}
